package alexico;

import java.util.LinkedList;

public class TokenList extends LinkedList<Token> {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	public Token buscarLastFunctionName(){
		for (int i = this.size()-1 ; i >= 0 ; i--){
			if (this.get(i).getCadena().equals("function")){
				return this.get(i+1);
			}
		}
		return null;
	}
	
}
